package com.sh.data.engine.application.model.request.api;

import com.sh.data.engine.domain.base.model.param.BaseModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author : fuchen
 * @date : 2022/1/19 15:43
 */
@Data
@Schema
public class DataApiBaseRequest extends BaseModel {

    @Schema(description = "api method: get post .... ")
    private String apiMethod;

    @Schema(description = "0-向导模式 1-脚本模式 2-注册模式 3-指标模式 ")
    private Integer apiType;

    @Schema(description = "api名称")
    private String apiName;

    @Schema(description = "api传输协议")
    private String apiProtocol;

    @Schema(description = "api路径")
    private String apiPath;

    @Schema(description = "api groupId")
    private Long apiGroupId;

    @Schema(description = "api 描述")
    private String apiDesc;

    @Schema(description = "是否开启分页 0- 不开启 1开启")
    private Integer pageable;

    @Schema(description = "是否开启分页 0- 不开启 1开启")
    private Integer authType;

    @Schema(description = "返回示例")
    private String responseExample;

    @Schema(description = "1-出入参数加密 0 或者null不加密")
    private Integer isSecurity;
}
